﻿<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>FileUpload</title>
    <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="bootstrap/css/bootstrap-theme.css" rel="stylesheet">
    <link href="js/fileupload/fileupload.css" rel="stylesheet">
    <script src="js/fileupload/jquery-2.1.1.min.js"></script>
    <script src="js/bootstrap/js/bootstrap.min.js"></script>

    <script src="js/fileupload/html5.websocket.fileupload-2.0.0.js?var=5"></script>

</head>
<body>

    <div class="container">
        <div class="fileup"></div>
    </div>
</body>

<script>

    //var host = window.location.host;
    var host = '103.233.7.16:81';

    //alert(host);

    var a = $('.fileup').fileuploader({
        concurrentHash: 1,
        concurrentUpload: 1,
        debugMode: true,
        wsuri: 'ws://' + host + '/GoldFile/websocket/fileup',
        onSuccess: function (fileInfo) {

            console.log(fileInfo);
            
        }
    });

   
</script>
</html>